<div style="font-size:10pt;" class="color">
    <a href="{url link='public.groups'}">{language text="groups"}</a>
    &gt;&gt;
{if $bCreate}
    {language text="create_group_903"}
{else}
    <a href="{url link='public.groups.view' id=$aGroupData.id}">{$aGroupData.title|escape}</a>
    &gt;&gt;
    {language text="edit"}
{/if}
</div>
<br/><br/>
<table style="width: 100%;" cellpadding="4" cellspacing="0">
<tr>
    <td class="border2">

        <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
            <td class="block_header">{if $bCreate}{language text="create"}{else}{language text="edit_380"}{/if} {language text="group_892"}</td>
        </tr>
        </table>

        {messages}
        {$sJsMess}

        <div style="padding-left:20px;font-size:10pt;" class="color">

        {if $bUpdated}
        	<div class="border13">
        	<div style="padding:15px;">
        	{language text="your_group_has_been_updated"}...
        	<ul>
        		<li><a href="{url link='public.groups.view' id=$aGroupData.id}">{language text="view_group"}</a></li>
        	</ul>
        	</div>
        	</div>
        	<br /><br />
        {/if}


        <form method="post" action="{url link='public.groups.edit'}" enctype="multipart/form-data" onsubmit="{$sJsVal}">
        <div><input type="hidden" name="id" value="{if $bCreate}0{else}{$aGroupData.id}{/if}" />
        	 <input type="hidden" name="act" value="{if $bCreate}create{else}edit{/if}" /></div>

             <table style="width:100%;" cellspacing="2" cellpadding="4">
             <tr>
                <td style="text-align:right;" class="color"><span class="star">*</span> {language text="group_name"}:</td>
                <td class="border13">
                    <input type="text" name="val[title]" size="40" maxlength="30" value="{$aGroupData.title|escape}" onfocus="this.className='inputmain';" onblur="this.className='';" />
                </td>
             </tr>
             <tr>
                <td style="text-align:right;" class="color"><span class="star">*</span> {language text="group_headline"}:</td>
                <td class="border13">
                    <input type="text" name="val[headline]" size="40" maxlength="50" value="{$aGroupData.headline|escape}" onfocus="this.className='inputmain';" onblur="this.className='';" />
                </td>
             </tr>
             <tr>
                <td style="text-align:right;" class="color"><span class="star">*</span> {language text="contacts_email"}:</td>
                <td class="border13">
                    <input type="text" name="val[email]" size="40" maxlength="50" value="{$aGroupData.email}" onfocus="this.className='inputmain';" onblur="this.className='';" />
                </td>
             </tr>
             <tr>
                <td style="text-align:right;" class="color">{language text="group_category"}:</td>
                <td class="border13">
            		<select name="val[type]" style="width:150px;">
                		{html_options options=$aCategories selected=$iCategoryId}
            		</select>
                </td>
             </tr>
             <tr>
                <td style="text-align:right;" class="color">{language text="members_can_invite"}:</td>
                <td class="border13">
                <select name="val[mem_invite]" style="width:150px;">
                    <option value="Yes" {if $bMemInvite}selected="selected"{/if}>{language text="yes"}</option>
                    <option value="No" {if not $bMemInvite}selected="selected"{/if}>{language text="no"}</option>
                </select>
                </td>
             </tr>
             <tr>
                <td style="text-align:right;" class="color">{language text="open_join"}:</td>
                <td class="border13">
            		<select name="val[open_join]" style="width:150px;">
                		<option value="Yes" {if $bOpenJoin}selected="selected"{/if}>{language text="yes"}</option>
                		<option value="No"  {if not $bOpenJoin}selected="selected"{/if}>{language text="no"}</option>
            		</select>
                </td>
             </tr>
             <tr>
                <td style="text-align:right;" class="color">{language text="public_forum"}:</td>
                <td class="border13">
                <select name="val[pub_forum]" style="width:150px;">
                    <option value="Yes" {if $bPubForum}selected="selected"{/if}>{language text="yes"}</option>
                    <option value="No" {if not $bPubForum}selected="selected"{/if}>{language text="no"}</option>
                </select>
                </td>
             </tr>
             <tr>
                <td style="text-align:right;" class="color">{language text="hidden_group"}:</td>
                <td class="border13">
                <select name="val[hide_group]" style="width:150px;">
                    <option value="Yes" {if $bHideGroup}selected="selected"{/if}>{language text="yes"}</option>
                    <option value="No" {if not $bHideGroup}selected="selected"{/if}>{language text="no"}</option>
                </select>
                </td>
             </tr>
             <tr>
                <td style="text-align:right;" class="color">{language text="members_can_post_images"}:</td>
                <td class="border13">
                <select name="val[mem_image]" style="width:150px;">
                    <option value="Yes" {if $bMemImage}selected="selected"{/if}>{language text="yes"}</option>
                    <option value="No" {if not $bMemImage}selected="selected"{/if}>{language text="no"}</option>
                </select>
                </td>
             </tr>
             <tr>
                <td style="text-align:right;" class="color"><span class="star">*</span> {language text="country"}:</td>
                <td class="border13">
            		<select name="val[location]" style="width:150px;"{if getParam('us_states')} onchange="checkUsMode(true);" id="fldCountrySel"{/if}>
            			<option value="">{language text="select"}</option>
            			{html_options options=$aLocation selected=$iLocationId}
            		</select>
                </td>
             </tr>
             <tr>
                <td style="text-align:right;" class="color"><span class="star">*</span> {language text="city"}:</td>
                <td class="border13">
	                <input type="text" name="val[city]" size="20" maxlength="30" value="{$aGroupData.city|escape}"  onfocus="this.className='inputmain';" onblur="this.className='';" />
                </td>
             </tr>
             {if $bZipState}
             <tr>
                <td style="text-align:right;" class="color">{language text="state"}:</td>
                <td class="border13">
                    <select name="val[state]" id="fldStateSel">
                    <option value="">{language text="select"}</option>
                    {html_options options=$aStates selected=$aGroupData.state}
                    </select>
                </td>
             </tr>
             <tr>
                <td style="text-align:right;" class="color">{language text="zip"}:</td>
                <td class="border13">
	                <input type="text" name="val[zip]" value="{if 0 != $aGroupData.zip}{$aGroupData.zip|escape}{/if}" size="40" maxlength="30" onfocus="this.className='inputmain';" onblur="this.className='';" id="fldZip"/>
                </td>
             </tr>
             {/if}
             {if $bCreate}
             <tr>
                <td style="text-align:right;" class="color">{language text="group_image"}: <span style="font-size:7pt;">( {language text="max_size"}: {$iMaxImageSize}{language text="kb"} )</span></td>
                <td class="border13">
                    <input type="file" name="image" size="30" />
                </td>
             </tr>
             {/if}
             <tr>
                <td colspan="2">
                    <span class="star">*</span> {language text="description"}:
                    <span style="padding-left:10px;font-size:7pt;">
                        <a class="link_action" href="javascript:void(0);" onclick="popUp2('{url link='public.popup.htmlguide}#html','500','500','yes','200','100');">[ {language text="html_help"} ]</a>
                    </span>
                    <div style="padding:5px;">
                        <textarea cols="50" rows="15" style="width:100%" name="val[text]">{$aGroupData.text}</textarea>
                    </div>
                </td>
             </tr>
             <tr>
                <td colspan="2"><span class="star">*</span> - {language text="mandatory_fields"}</td>
             </tr>
             <tr>
                <td></td>
                <td>
                    <input type="submit" value="{language text='submit'}" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';"/>
                    {if not $bCreate}
                        <span style="padding-left:10px;font-size:8pt;">
                            <a class="link_action" href="{url link='public.groups.delete' id=$aGroupData.id}">[ {language text="cancel_this_group"} ]</a>
                        </span>
                    {/if}
                </td>
             </tr>

             </table>

        </form>

        </div>
    </td>
</tr>
</table>
{if getParam('us_states')}<script type="text/javascript">checkUsMode(true);</script>{/if}